﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace PhysicalExamination5.Model.DataMaintenance
{
    public class ZiDianMingXiAddClass
    {
        [Required(ErrorMessage = "一级字典是必填的！")]
        public string strYiJiName {  get; set; }
        [Required(ErrorMessage = "二级字典是必填的！")]
        public string strErJiName { get; set; }
        [Required(ErrorMessage = "字典值是必填的！")]
        public string strZiDianZhi {  get; set; }
        [Required(ErrorMessage = "拼音码是必填的！")]
        public string strPym {  get; set; }
        public string? strBeiZhu1 { get; set; }
        public string? strBeiZhu2 { get; set; }
        public string? strFenLei { get; set; }
        private string _strShiFouMoRen;
        public string strShiFouMoRen {
            get
            {
                return string.IsNullOrEmpty(_strShiFouMoRen) ? "否" : _strShiFouMoRen;
            }
            set
            {
                _strShiFouMoRen = value;
            }
        }
    }
    public class ZiDianMingXiUpdateClass
    {
        [Required(ErrorMessage = "字典Id是必填的")]
        public string strZiDianId { get; set; }
        [Required(ErrorMessage = "字典值是必填的")]
        public string strZiDianZhi { get; set; }
        [Required(ErrorMessage = "拼音码是必填的")]
        public string strPym { get; set; }
        public string? strBeiZhu1 { get; set; }
        public string? strBeiZhu2 { get; set; }
        public string? strFenLei { get; set; }
        private string _strShiFouMoRen;
        public string strShiFouMoRen
        {
            get
            {
                return string.IsNullOrEmpty(_strShiFouMoRen) ? "否" : _strShiFouMoRen;
            }
            set
            {
                _strShiFouMoRen = value;
            }
        }
    }
    public class ZiDianMingXiDeleteClass
    {
        [Required(ErrorMessage = "字典Id是必填的")]
        public string strZiDianId { get; set; }
    }
}
